package com.wsc.goods.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wsc
 * @since 2019-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_product")
public class Product implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField("createTime")
    private Long createTime;

    @TableField("updateTime")
    private Long updateTime;

    private String name;

    @TableField("subName")
    private String subName;

    private String code;

    private Long productTypeId;

    @TableField("onSaleTime")
    private Long onSaleTime;

    @TableField("offSaleTime")
    private Long offSaleTime;

    private Long brandId;

    private Integer state;

    @TableField("maxPrice")
    private Integer maxPrice;

    @TableField("minPrice")
    private Integer minPrice;

    @TableField("saleCount")
    private Integer saleCount;

    @TableField("viewCount")
    private Integer viewCount;

    @TableField("commentCount")
    private Integer commentCount;

    @TableField("commentScore")
    private Integer commentScore;

    @TableField("badCommentCount")
    private Integer badCommentCount;

    @TableField(exist = false)
    private ProductExt productExt;

    private String medias;


}
